const express = require('express')
const router = express.Router()
const { login } = require('../controller/login')

router.post('/login', (req, res, next) => {
    login(req.body).then((data) => {
        res.json(data)
    })
})


module.exports = router